/**
 * @author Administrator
 */
public class HelloWorld {
    public static void main(String[] args) {
       /* //定义整型变量
        int a=12;
        long b=123456L;
        //定义浮点型变量
        double c=12.34;
        float d=12.45f;
        System.out.println("Hello World!");

        //定义整型变量
        byte a_byte=123;
        int a_int=20;
        long a_long=12345670000L;
        //定义浮点型变量
        float a_float=12.345f;
        double a_double=15.555;
        //定义字符变量
        char a_char='a';
        char a2_char='b';
        char a3_char='中';
        //定义布尔变量
        boolean a_boolean=true;
        //输入查看变量
        System.out.println("整型byte变量a_byte的值为："+a_byte);
        System.out.println("整型int变量a_int的值为："+a_int);
        System.out.println("整型long变量a_long的值为："+a_long);
        System.out.println("浮点型float变量a_float的值为："+a_float);
        System.out.println("浮点型double变量a_double的值为："+a_double);
        System.out.println("字符型char变量a_char的值为："+a_char);
        System.out.println("字符型char变量a２_char的值为："+a2_char);
        System.out.println("字符型char变量a３_char的值为："+a3_char);
        System.out.println("布尔型boolean变量a_boolean的值为："+a_boolean);*/

        int a=298;
        byte b;
        b= (byte) a;
        System.out.println("a="+a);
        System.out.println("b="+b);

        byte a1=3;
        byte a2=4;
        int a3=a1+a2;
        System.out.println("a3="+a3);

        System.out.println("hello"+'a'+1);
        System.out.println('a'+1+"hello");


    }

}
